package com.sz.model;

import org.springframework.data.annotation.Id;
import tk.mybatis.mapper.annotation.KeySql;

import java.util.Date;

public class TDeal {
    public TDeal() {
    }

    public TDeal(Integer pkDealId, Integer ukDpId, String reciprocalName, String reciprocalAccount, Long tradingAmount, Integer outputInput, Date tradingHour) {
        this.pkDealId = pkDealId;
        this.ukDpId = ukDpId;
        this.reciprocalName = reciprocalName;
        this.reciprocalAccount = reciprocalAccount;
        this.tradingAmount = tradingAmount;
        this.outputInput = outputInput;
        this.tradingHour = tradingHour;
    }

    public TDeal(Integer ukDpId, String reciprocalName, String reciprocalAccount, Long tradingAmount, Integer outputInput, Date tradingHour) {
        this.ukDpId = ukDpId;
        this.reciprocalName = reciprocalName;
        this.reciprocalAccount = reciprocalAccount;
        this.tradingAmount = tradingAmount;
        this.outputInput = outputInput;
        this.tradingHour = tradingHour;
    }

    @Override
    public String toString() {
        return "TDeal{" +
                "pkDealId=" + pkDealId +
                ", ukDpId=" + ukDpId +
                ", reciprocalName='" + reciprocalName + '\'' +
                ", reciprocalAccount='" + reciprocalAccount + '\'' +
                ", tradingAmount=" + tradingAmount +
                ", outputInput=" + outputInput +
                ", tradingHour=" + tradingHour +
                '}';
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.pk_deal_id
     *
     * @mbggenerated
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer pkDealId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.uk_dp_id
     *
     * @mbggenerated
     */
    private Integer ukDpId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.reciprocal_name
     *
     * @mbggenerated
     */
    private String reciprocalName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.reciprocal_account
     *
     * @mbggenerated
     */
    private String reciprocalAccount;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.trading_amount
     *
     * @mbggenerated
     */
    private Long tradingAmount;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.output_input
     *
     * @mbggenerated
     */
    private Integer outputInput;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_deal.trading_hour
     *
     * @mbggenerated
     */
    private Date tradingHour;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.pk_deal_id
     *
     * @return the value of t_deal.pk_deal_id
     *
     * @mbggenerated
     */
    public Integer getPkDealId() {
        return pkDealId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.pk_deal_id
     *
     * @param pkDealId the value for t_deal.pk_deal_id
     *
     * @mbggenerated
     */
    public void setPkDealId(Integer pkDealId) {
        this.pkDealId = pkDealId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.uk_dp_id
     *
     * @return the value of t_deal.uk_dp_id
     *
     * @mbggenerated
     */
    public Integer getUkDpId() {
        return ukDpId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.uk_dp_id
     *
     * @param ukDpId the value for t_deal.uk_dp_id
     *
     * @mbggenerated
     */
    public void setUkDpId(Integer ukDpId) {
        this.ukDpId = ukDpId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.reciprocal_name
     *
     * @return the value of t_deal.reciprocal_name
     *
     * @mbggenerated
     */
    public String getReciprocalName() {
        return reciprocalName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.reciprocal_name
     *
     * @param reciprocalName the value for t_deal.reciprocal_name
     *
     * @mbggenerated
     */
    public void setReciprocalName(String reciprocalName) {
        this.reciprocalName = reciprocalName == null ? null : reciprocalName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.reciprocal_account
     *
     * @return the value of t_deal.reciprocal_account
     *
     * @mbggenerated
     */
    public String getReciprocalAccount() {
        return reciprocalAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.reciprocal_account
     *
     * @param reciprocalAccount the value for t_deal.reciprocal_account
     *
     * @mbggenerated
     */
    public void setReciprocalAccount(String reciprocalAccount) {
        this.reciprocalAccount = reciprocalAccount == null ? null : reciprocalAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.trading_amount
     *
     * @return the value of t_deal.trading_amount
     *
     * @mbggenerated
     */
    public Long getTradingAmount() {
        return tradingAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.trading_amount
     *
     * @param tradingAmount the value for t_deal.trading_amount
     *
     * @mbggenerated
     */
    public void setTradingAmount(Long tradingAmount) {
        this.tradingAmount = tradingAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.output_input
     *
     * @return the value of t_deal.output_input
     *
     * @mbggenerated
     */
    public Integer getOutputInput() {
        return outputInput;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.output_input
     *
     * @param outputInput the value for t_deal.output_input
     *
     * @mbggenerated
     */
    public void setOutputInput(Integer outputInput) {
        this.outputInput = outputInput;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_deal.trading_hour
     *
     * @return the value of t_deal.trading_hour
     *
     * @mbggenerated
     */
    public Date getTradingHour() {
        return tradingHour;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_deal.trading_hour
     *
     * @param tradingHour the value for t_deal.trading_hour
     *
     * @mbggenerated
     */
    public void setTradingHour(Date tradingHour) {
        this.tradingHour = tradingHour;
    }
}